<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="subAccountDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='subAccountDetail.heading'/>"/>
    <meta name="menu" content="YADataMenu"/>
    <link type="text/css" href="<c:url value='/scripts/jquery-ui/css/smoothness/jquery-ui-1.8.12.custom.css'/>" rel="stylesheet" />	
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-1.5.1.min.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-ui-1.8.12.custom.min.js'/>"></script>
	<script>
	$(function() {
		$( "#subAccountForm_subAccount_openDay" ).datepicker();
	});
</script>
</head>


<s:form id="subAccountForm" action="saveSubAccount" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="subAccount.id"/>
    </li>
    <s:textfield key="subAccount.subAccount" required="true" cssClass="text medium"/>
    <s:textfield key="subAccount.account.account" required="true" cssClass="text medium"/>
	<s:select key="subAccount.type" list="subAccountTypes" listKey="description" listValue="description" cssClass="select"/>
	<s:textfield key="subAccount.openDay" required="false" cssClass="text medium"/>
  	<s:textfield key="subAccount.remark" required="false" cssClass="text medium"/>
    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("subAccountForm"));
</script>